

static func index(_self):
	var acc = _self.acc;
	var rotation = _self.rotation;
	var texture = _self.texture;
	var angle_per_spr = _self.angle_per_spr;
	var textrueOffset = _self.textrueOffset;
	
	var alpha = 1;
	var alphaPercent = 1.1
	var i = angle_per_spr;
	while i < abs(acc):
		alpha /= alphaPercent;
		_self.draw_set_transform(Vector2(0, 0), sign(rotation) * -i);
		_self.draw_texture(texture, textrueOffset, Color(1,1,1, alpha))
		i += angle_per_spr;
	alpha /= alphaPercent;
	_self.draw_set_transform(Vector2(0, 0), -acc);
	_self.draw_texture(texture, textrueOffset, Color(1,1,1, alpha))
